import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

const Home = { template: '<div>Home</div>' };

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/kafka-admin/cluster/ClusterDetail.vue'),
  },
  {
    path: '/kafka/topics',
    name: 'Topics',
    component: () => import('@/views/kafka-admin/topic/TopicsManagement.vue'),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
